🎲 - درس مهم جدا جدا جدا في البايثون والتعامل مع الملفات :
كثير اذا اراد يسوي لسته او يطبع شي ويحفظه في ملف كيف يسوي كذا والطريقه بكل بساطه اولا تسوي متغير مثلا اسمه vigitaوتسوي = وبعدها تكتب open وتفتح قوسين تسوي علامتين تنصيص "" تسوي بداخلها اسم النلف الي تريده تحفظله النتايج ثم تخرج من علامتي التنصيص مع البقاء داخل القوس ثم عمل فاصله , ثم عمل علامتي تنصيص مجددا وكتابه بداخله حرف w بمعنى write حتى يصبح بهذا الشكل VIGITA = open("vigitamhs.txt","w") الان بعد ان قمنا بهذي الخطوه نسوي اسم المتغيير الذي في الاعلى ثم نضع نقطه ثم نكتب write ثم نفاح قوسين وعلامتي تنصيص ونكتب الذي نريد حتى يصبح بهذا الشكل VIGITA.write("Hello World Iam ViGiTa") وبعدها نكتب VIGITA.close()
الان قم بتجربه الكود في ملف ومسار معين سترى ملف ظهر وبداخله النص الذي قمنا بكتابته
🎭 - الكود كاملا :
VIGITA = open("VIGITA_MHS.txt","w") VIGITA.write("Hello World iam vigita") VIGITA.close()
🎲 - درس مهم جدا جدا جدا في البايثون والتعامل مع الملفات :
كثير اذا اراد يسوي لسته او يطبع شي ويحفظه في ملف كيف يسوي كذا والطريقه بكل بساطه اولا تسوي متغير مثلا اسمه vigitaوتسوي = وبعدها تكتب open وتفتح قوسين تسوي علامتين تنصيص "" تسوي بداخلها اسم النلف الي تريده تحفظله النتايج ثم تخرج من علامتي التنصيص مع البقاء داخل القوس ثم عمل فاصله , ثم عمل علامتي تنصيص مجددا وكتابه بداخله حرف w بمعنى write حتى يصبح بهذا الشكل VIGITA = open("vigitamhs.txt","w") الان بعد ان قمنا بهذي الخطوه نسوي اسم المتغيير الذي في الاعلى ثم نضع نقطه ثم نكتب write ثم نفاح قوسين وعلامتي تنصيص ونكتب الذي نريد حتى يصبح بهذا الشكل VIGITA.write("Hello World Iam ViGiTa") وبعدها نكتب VIGITA.close()
الان قم بتجربه الكود في ملف ومسار معين سترى ملف ظهر وبداخله النص الذي قمنا بكتابته
🎭 - الكود كاملا :
VIGITA = open("VIGITA_MHS.txt","w") VIGITA.write("Hello World iam vigita") VIGITA.close()
n the U.S. people generally use Bitcoin as an alternative investment, helping diversify a portfolio apart from stocks and bonds. You can also use Bitcoin to make purchases, but the number of vendors that accept the cryptocurrency is still limited. Big companies that accept Bitcoin include Overstock, AT&T and Twitch. You may also find that some small local retailers or certain websites take Bitcoin, but you’ll have to do some digging. That said, PayPal has announced that it will enable cryptocurrency as a funding source for purchases this year, financing purchases by automatically converting crypto holdings to fiat currency for users. “They have 346 million users and they’re connected to 26 million merchants,” says Spencer Montgomery, founder of Uinta Crypto Consulting. “It’s huge.”
To pay the bills, Mr. Durov is issuing investors $1 billion to $1.5 billion of company debt, with the promise of discounted equity if the company eventually goes public, the people briefed on the plans said. He has also announced plans to start selling ads in public Telegram channels as soon as later this year, as well as offering other premium services for businesses and users.